using System;
using System.Collections.Generic;

namespace TJDevHouse.Starcraft.Game
{
	/// <summary> Represents a starting location in StarCraft.
	/// 
	/// Note: x and y are in tile coordinates
	/// </summary>
	public class StartingLocation
	{
		public int X { get; private set; }
		public int Y { get; private set; }

		public Map Map { get; private set; }

		public StartingLocation(Map map, int x, int y)
		{
			///TODO add map to the construct params after moving location import to map class
			X = x;
			Y = y;
			Map = map;
		}

		public override System.String ToString()
		{
			return X + "," + Y;
		}

		public BuildTile BuildTile
		{
			get
			{
				return Map.GetBuildTile(X, Y);
			}
		}
	}
}